/**
 * 
 */
package web.common.entity;

import java.util.Date;

/**
 * 项目名称：ebs 
 * @ClassName: Image
 * @author ZK JIA<br>
 * 创建时间： 2013-11-6 下午10:00:08<br>
 * @version 1.1<br>
 * 描述: TODO(图片)<br>
 */

public class Image extends BaseEntity {
	
	
	  /**
	
	* <p>Title: </p>
	
	* <p>Description: </p>
	
	* @param createTime
	* @param updateTime
	* @param createBy
	* @param imageCode
	* @param imageName
	* @param userCode
	* @param userType
	* @param imageType
	* @param path
	
	*/
	public Image(Date createTime, Date updateTime, String createBy,
			String imageCode, String imageName, String userCode,
         int userType, int imageType, String path,User user) {
		super(createTime, updateTime, createBy);
		this.imageCode = imageCode;
		this.imageName = imageName;
		this.userCode = userCode;
		this.userType = userType;
		this.imageType = imageType;
		this.path = path;
		this.user = user;
	}
	  private String imageCode;//图片编码
	  private String imageName;//图片名称
	  private String userCode;//用户编码
	  private int userType;//用户类型
	  private int imageType;
	  private String path;
	  
	  private User user;
	  
	  
	public String getImageCode() {
		return imageCode;
	}
	public void setImageCode(String imageCode) {
		this.imageCode = imageCode;
	}
	public String getImageName() {
		return imageName;
	}
	public void setImageName(String imageName) {
		this.imageName = imageName;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
		public String getPath() {
		return path;
	}
		public int getUserType() {
			return userType;
		}
		public void setUserType(int userType) {
			this.userType = userType;
		}
		public int getImageType() {
			return imageType;
		}
		public void setImageType(int imageType) {
			this.imageType = imageType;
		}
		public void setPath(String path) {
			this.path = path;
		}
		
		public User getUser() {
			return user;
		}
		public void setUser(User user) {
			this.user = user;
		}
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result
					+ ((imageCode == null) ? 0 : imageCode.hashCode());
			return result;
		}
		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			Image other = (Image) obj;
			if (imageCode == null) {
				if (other.imageCode != null)
					return false;
			} else if (!imageCode.equals(other.imageCode))
				return false;
			return true;
		}
		@Override
		public String toString() {
			return "Image [imageCode=" + imageCode + ", imageName=" + imageName
					+ ", imageType=" + imageType + ", path=" + path + ", user="
					+ user + ", userCode=" + userCode + ", userType="
					+ userType + ", createBy=" + createBy + ", createTime="
					+ createTime + ", updateTime=" + updateTime + "]";
		}
		
		
		
}